package com.model;

import java.util.Arrays;
import java.util.List;

/***************************** IMPORT *****************************/



public class Carver {

	/************ DECLARATIONS ***************/

	
	
	/************ CONSTRUCTOR ****************/
	public Carver() {
		//Nothing to create
	}

	
	/************** METHODES *****************/
	/**
	 * @brief Split the complete string in words.
	 * @param completeSentence : string received.
	 * @param separator : string which permit to cut the sentence.
	 */
	public List<String> setCompleteString(String completeSentence,String separator) {
		  
		if (completeSentence != null){
			//Split the Sentence and transform the string table in a list table
			return Arrays.asList(completeSentence.split(separator));
			
		}
		else{
			return null;
		}
	} 
	
	
	/************* ACCESSORS *************/
}
